package com.qiye.livevideo.service.impl;
import com.qiye.livevideo.dao.AliCloudLiveInfoDao;
import com.qiye.livevideo.model.AliCloudLiveInfo;
import com.qiye.livevideo.service.AliCloudLiveInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;


/**
 *阿里云视频直播相关配置信息 serverImpl
 *  Created on 2019/4/30.
 *  @author meishijun
 */
@Service
@Transactional
public class AliCloudLiveInfoServiceImpl   implements AliCloudLiveInfoService {


	/**
	 * 注入dao
	 */
	@Resource
	private AliCloudLiveInfoDao aliCloudLiveInfoDao;
	/**
	 * 初始化
	 */
	@Override
	public AliCloudLiveInfoDao initDao(){
		return aliCloudLiveInfoDao;
	}


	/**
	 * 根据阿里云keyId获取阿里云直播配置信息
	 * @param accessKeyId
	 * @return
	 */
	@Override
	public AliCloudLiveInfo selectByaccessKeyId(String accessKeyId) {
		return aliCloudLiveInfoDao.selectByaccessKeyId(accessKeyId);
	}
}
